package com.yueyang.sojourn.server.common.baymax.web.result.exception;

import org.springframework.http.HttpStatus;

/**
 * 访问被拒绝，对应Http 403
 */
public class AccessDeniedException extends AbstractResultException {
  private static final long serialVersionUID = 1L;

  /**
   * @since 1.0.0
   * @param code 业务错误码
   * @param messsage 提示消息
   */
  public AccessDeniedException(int code, String messsage) {
    super(code, messsage, HttpStatus.FORBIDDEN);
  }


  /**
   * 业务错误码为 {@link ResultCode#UNKNOWN}
   * 
   * @since 1.0.0
   * @param message 业务提示信息
   */
  public AccessDeniedException(String message) {
    super(message, HttpStatus.FORBIDDEN);
  }

}
